﻿using System;
using System.Collections.Generic;
using System.Linq;
using AutoR.Helpers;
using Newtonsoft.Json;

namespace AutoR.Models
{
	// Token: 0x020001F7 RID: 503
	public class UserQuest
	{
		// Token: 0x1700034B RID: 843
		// (get) Token: 0x06000B36 RID: 2870 RVA: 0x0006D1A8 File Offset: 0x0006B3A8
		// (set) Token: 0x06000B37 RID: 2871 RVA: 0x0006D1B0 File Offset: 0x0006B3B0
		public int status { get; set; }

		// Token: 0x1700034C RID: 844
		// (get) Token: 0x06000B38 RID: 2872 RVA: 0x0006D1B9 File Offset: 0x0006B3B9
		// (set) Token: 0x06000B39 RID: 2873 RVA: 0x0006D1C1 File Offset: 0x0006B3C1
		public string title { get; set; }

		// Token: 0x1700034D RID: 845
		// (get) Token: 0x06000B3A RID: 2874 RVA: 0x0006D1CA File Offset: 0x0006B3CA
		// (set) Token: 0x06000B3B RID: 2875 RVA: 0x0006D1D2 File Offset: 0x0006B3D2
		public QuestType type { get; set; }

		// Token: 0x1700034E RID: 846
		// (get) Token: 0x06000B3C RID: 2876 RVA: 0x0006D1DB File Offset: 0x0006B3DB
		// (set) Token: 0x06000B3D RID: 2877 RVA: 0x0006D1E3 File Offset: 0x0006B3E3
		public QuestCondition[] condition { get; set; }

		// Token: 0x1700034F RID: 847
		// (get) Token: 0x06000B3E RID: 2878 RVA: 0x0006D1EC File Offset: 0x0006B3EC
		// (set) Token: 0x06000B3F RID: 2879 RVA: 0x0006D1F4 File Offset: 0x0006B3F4
		public Dictionary<string, int> award { get; set; }

		// Token: 0x17000350 RID: 848
		// (get) Token: 0x06000B40 RID: 2880 RVA: 0x0006D1FD File Offset: 0x0006B3FD
		// (set) Token: 0x06000B41 RID: 2881 RVA: 0x0006D205 File Offset: 0x0006B405
		public string desc { get; set; }

		// Token: 0x17000351 RID: 849
		// (get) Token: 0x06000B42 RID: 2882 RVA: 0x0006D20E File Offset: 0x0006B40E
		// (set) Token: 0x06000B43 RID: 2883 RVA: 0x0006D216 File Offset: 0x0006B416
		public int taskCid { get; set; }

		// Token: 0x17000352 RID: 850
		// (get) Token: 0x06000B44 RID: 2884 RVA: 0x0006D21F File Offset: 0x0006B41F
		// (set) Token: 0x06000B45 RID: 2885 RVA: 0x0006D227 File Offset: 0x0006B427
		public int userLevel { get; set; }

		// Token: 0x17000353 RID: 851
		// (get) Token: 0x06000B46 RID: 2886 RVA: 0x0006D230 File Offset: 0x0006B430
		// (set) Token: 0x06000B47 RID: 2887 RVA: 0x0006D238 File Offset: 0x0006B438
		[JsonConverter(typeof(DateTimeConverter))]
		public DateTime createTime { get; set; }

		// Token: 0x17000354 RID: 852
		// (get) Token: 0x06000B48 RID: 2888 RVA: 0x0006D241 File Offset: 0x0006B441
		public bool IsFinished
		{
			get
			{
				return this.condition.All((QuestCondition i) => i.IsFinished);
			}
		}
	}
}
